<!DOCTYPE html>
<html>

<head>
	<title>lyj.Msg Demo</title>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<style>
		body {
			background: linear-gradient(45deg, #ddd 20%, transparent 0, transparent 80%, #ddd 0), linear-gradient(135deg, transparent 30%, #eee 0, #eee 70%, transparent 0), linear-gradient(45deg, transparent 30%, #ddd 0, #ddd 70%, transparent 0) #fff;
			background-size: 50px 50px;
		}
	</style>
	<script>
		$(function () {
			$('input:eq(0)').click(function () {
				lyj.Msg.Show({ msg: '删除成功', type: 'info' });
				lyj.Msg.Show({ msg: '删除成功', type: 'prompt' });
				lyj.Msg.Show({ msg: '删除成功', type: 'warning' });
				lyj.Msg.Show({ msg: '删除成功', type: 'alarm' });
				lyj.Msg.Show({ msg: '删除成功', type: 'error', delay: 0 });
			});

			$('input:eq(1)').click(function () {
				lyj.Msg.ShowLoading();
				window.setTimeout(function () {
					lyj.Msg.HideLoading();
				}, 2000);
			});

		});
	</script>
</head>


<body>
	lyj.Msg.Show(): <input type="button" value="消息框" /> <br />
	lyj.Msg.ShowLoading(): <input type="button" value="加载" />
</body>

</html>